package cardemo;
/**
 * 车座
 * @author cdc
 * 
 * 一个类只能提供一个构造器作为依赖
 *
 */
public class Seat {
	
	private Leather leather;
	public Seat() {
		System.out.println("seat");
	}
	
	public Seat(String name) {
		System.out.println("seat 有参数的构造函数");
	}
	
	public Seat(Leather leather){
		this.leather=leather;
		System.out.println("seat 有参数的构造函数leather");
	}

}
